<%-- 
    Document   : topNavSelected
    Created on : 10-mei-2012, 9:34:18
    Author     : Niels Leguit <niels.leguit at hva.nl>
--%>

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@tag description="Array checked active selector" pageEncoding="UTF-8"%>

<%-- The list of normal or fragment attributes can be specified here: --%>
<%@attribute name="topNavSelected" required="true"%>
<%@attribute name="topNavUrl" required="true"%>
<%@attribute name="topNavKey" required="false"%>
<%@attribute name="topNavTitle" required="true"%>

<%-- any content can be specified here e.g.: --%>
<c:choose>
    <c:when test="${topNavSelected}">
        <li class="active"><a href=${topNavUrl} accesskey="${topNavKey}">${topNavTitle}</a></li>
    </c:when>
    <c:otherwise>
        <li><a href=${topNavUrl} accesskey="${topNavKey}">${topNavTitle}</a></li>
    </c:otherwise>
</c:choose>